package com.nage.engine;

import android.util.Log;

public class Statistics {

	public static long updateTime;
	public static long minUpdateTime;
	public static long maxUpdateTime;
	public static long sum;
	public static int count;
	private static long meanUpdateTime;
	
	public static void reset() {
		updateTime = 0;
		minUpdateTime = 100;
		maxUpdateTime = 0;
		sum = 0;
		count = 0;
		meanUpdateTime = 0;
	}

	public static void results() {
		meanUpdateTime = sum/count;
		Log.d("Statistics", "Engine Statistics Results:");
		Log.d("Statistics", " 		minUpdateTime: "+minUpdateTime);
		Log.d("Statistics", " 		maxUpdateTime: "+maxUpdateTime);
		Log.d("Statistics", " 		meanUpdateTime: "+meanUpdateTime);
		Log.d("Statistics", " 		numUpdates: "+count);
	}

}
